package com.common.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Target({ElementType.TYPE,ElementType.METHOD,ElementType.PARAMETER})
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface CacheExpire {
    @AliasFor("expire")
    long value() default 60*60L;

    @AliasFor("value")
    long expire() default 60*60L;

    TimeUnit type() default TimeUnit.SECONDS;
}
